package etc.com.market;

import etc.com.market.R;
import android.app.Activity;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Toast;

public abstract class ActivityBase extends Activity{
	public abstract void  LoadData();
	/* protected TextView title;
	
*/
	
	/*@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
 
        if(ChurchApp.chkWifiStatus(this) == false){
        	Toast.makeText(this, getText(R.string.msg_no_wifi), Toast.LENGTH_SHORT).show();
	     }
       
    }*/
	
	@Override
    protected void onResume() {
        super.onResume();
		if(MarketSystem.chkWifiStatus(this) == false){
        	Toast.makeText(this, getText(R.string.msg_no_wifi), Toast.LENGTH_SHORT).show();
	     }
	}
	
	public boolean onTouch(View v, MotionEvent event) {
		// TODO Auto-generated method stub
		return false;
	}	
	
	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
	    if (keyCode == KeyEvent.KEYCODE_SEARCH) {
	        return true;
	    }
	    return super.onKeyDown(keyCode, event);
	}
	

	
	
}
